package com.hkts.management.common.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @ClassNameDriverListInfo
 * @Description
 * @Author yck
 * @Date2021-07-26 9:34
 * @Version V1.0
 **/
@Data
@ApiModel(value = "pc 司机列表")
public class DriverListInfoVo {
    @ApiModelProperty(value = "主键")
    private String id;
    @ApiModelProperty(value = "认证状态")
    private String approval;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "认证时间")
    private Date approvalTime;
    @ApiModelProperty(value = "状态")
    private String headPortrait;
    @ApiModelProperty(value = "手机")
    private String mobile;
    @ApiModelProperty(value = "司机姓名")
    private String driverName;
    @ApiModelProperty(value = "车型")
    private String ehicleType;
    @ApiModelProperty(value = "车长")
    private String vehicleLength;
    @ApiModelProperty(value = "车牌号")
    private String carCode;

    @ApiModelProperty(value = "订单数量")
    private Integer orderNum;
    @ApiModelProperty(value = "好评率")
    private String favorableRate;

    @ApiModelProperty(value = "上次登录城市")
    private String lastLoginCity;
    @ApiModelProperty(value = "上次登录时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastLoginTime;


    @ApiModelProperty(value = "注册时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date registrationTime;

    @ApiModelProperty(value = "车辆认证状态")
    @JsonIgnoreProperties
    private Integer carApprovalStatus;
    @ApiModelProperty(value = "用户ids")
    @JsonIgnoreProperties
    private List<String> driverIds=new ArrayList<>();

}
